import request from '@/utils/request'
import Taro from "@tarojs/taro";
import {getStorageSync} from "@/utils/common";

export async function queryDic() {
	return request({url: '/api/dict/getDict', method: 'GET'});
}

export async function fileUpload(filePath) {
	return Taro.uploadFile({
		url: HOST+"/web/authc/file/upload",
		filePath,
		name: "files",
		header: {
			"content-type": "multipart/form-data",
			AppAuthz: getStorageSync('token'),
		}
	});
}
